#include <Ogre.h>


#include "IntroState.h"




using namespace Ogre;




void IntroState::enter()
{
Ogre::LogManager::getSingletonPtr()->logMessage("*** Entering IntroState ***");


    //should be for Ogre 1.2 createSceneManager(ST_GENERIC);
    //mSceneMgr = mRoot->createSceneManager(ST_GENERIC);
    //mCamera = mSceneMgr->createCamera("IntroCamera");
    //mViewport = mRoot->getAutoCreatedWindow()->addViewport(mCamera);
    //mViewport->setBackgroundColour(ColourValue(1.0, 0.0, 0.0));

     //Ogre::Entity* entNinja = mSceneMgr->createEntity("Ninja", "ninja.mesh");
   // entNinja->setCastShadows(true);
    //mSceneMgr->getRootSceneNode()->createChildSceneNode()->attachObject(entNinja);


}

void IntroState::exit()
{
    //mSceneMgr->clearScene();
        //!! Note: This is supposed to be mSceneMgr->destroyAllCameras(); for CVS head
//    mSceneMgr->removeAllCameras();
    //mRoot->getAutoCreatedWindow()->removeAllViewports();
}

     bool IntroState::keyPressed( const KeyEvent &arg ){}

     bool IntroState::keyReleased( const KeyEvent &arg ){}

     bool IntroState::mouseMoved( const MouseEvent &arg ){}
		 bool IntroState::mousePressed( const MouseEvent &arg, MouseButtonID id ){}
		 bool IntroState::mouseReleased( const MouseEvent &arg, MouseButtonID id ){}

/*
bool IntroState::frameStarted(const FrameEvent& evt)
{
    return true;
}

bool IntroState::frameEnded(const FrameEvent& evt)
{
    if (mExitGame)
        return false;

    return true;
}
*/
